package com.sesame;

import com.sesame.api.FMSConfig;
import kim.sesame.framework.web.context.SpringContextUtil;
import lombok.extern.apachecommons.CommonsLog;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;


@CommonsLog
@SpringBootApplication
public class AppFms {

    public static void main(String[] arr) {

        SpringApplication.run(AppFms.class, arr);
        SpringContextUtil.printInfo();

        // 打印地址
        FMSConfig fms = SpringContextUtil.getBean(FMSConfig.class);
        log.info("filePath : " + fms.getFilePath());
        log.info("mapping : " + fms.getMapping());

		/*
		ResourceProperties resourceProperties = SpringContextUtil.getBean(ResourceProperties.class);
		String [] list = resourceProperties.getStaticLocations();
		for(String s : list){
			System.out.println(s);
		}
		System.out.println(ArrUtils.formateArr(list));
	  */

    }
}